package com.ruoyi.house.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house.mapper.WebmagicBuildingDetailMapper;
import com.ruoyi.house.domain.WebmagicBuildingDetail;
import com.ruoyi.house.service.IWebmagicBuildingDetailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 楼宇明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-09
 */
@Service
public class WebmagicBuildingDetailServiceImpl implements IWebmagicBuildingDetailService 
{
    @Autowired
    private WebmagicBuildingDetailMapper webmagicBuildingDetailMapper;

    /**
     * 查询楼宇明细
     * 
     * @param id 楼宇明细主键
     * @return 楼宇明细
     */
    @Override
    public WebmagicBuildingDetail selectWebmagicBuildingDetailById(Long id)
    {
        return webmagicBuildingDetailMapper.selectWebmagicBuildingDetailById(id);
    }

    /**
     * 查询楼宇明细列表
     * 
     * @param webmagicBuildingDetail 楼宇明细
     * @return 楼宇明细
     */
    @Override
    public List<WebmagicBuildingDetail> selectWebmagicBuildingDetailList(WebmagicBuildingDetail webmagicBuildingDetail)
    {
        return webmagicBuildingDetailMapper.selectWebmagicBuildingDetailList(webmagicBuildingDetail);
    }

    /**
     * 新增楼宇明细
     * 
     * @param webmagicBuildingDetail 楼宇明细
     * @return 结果
     */
    @Override
    public int insertWebmagicBuildingDetail(WebmagicBuildingDetail webmagicBuildingDetail)
    {
        return webmagicBuildingDetailMapper.insertWebmagicBuildingDetail(webmagicBuildingDetail);
    }

    /**
     * 修改楼宇明细
     * 
     * @param webmagicBuildingDetail 楼宇明细
     * @return 结果
     */
    @Override
    public int updateWebmagicBuildingDetail(WebmagicBuildingDetail webmagicBuildingDetail)
    {
        return webmagicBuildingDetailMapper.updateWebmagicBuildingDetail(webmagicBuildingDetail);
    }

    /**
     * 批量删除楼宇明细
     * 
     * @param ids 需要删除的楼宇明细主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicBuildingDetailByIds(String ids)
    {
        return webmagicBuildingDetailMapper.deleteWebmagicBuildingDetailByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除楼宇明细信息
     * 
     * @param id 楼宇明细主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicBuildingDetailById(Long id)
    {
        return webmagicBuildingDetailMapper.deleteWebmagicBuildingDetailById(id);
    }
}
